import 'dart:io';

import 'package:aws_s3_upload/aws_s3_upload.dart';
import 'package:uuid/uuid.dart';
import 'package:dio/dio.dart';
import 'package:dio/dio.dart' as dio;
import 'package:hive/hive.dart';
import 'package:path/path.dart' as path;
import '../../utils/common_sp_util.dart';
import '../../utils/loding.dart';
import '../../utils/xd_crypto_utils.dart';
import '../constants.dart';
import '../service/device_info.dart';
import '../service/upload_service.dart';
import 'api_url_const.dart';
import 'net_config.dart';
import 'net_manger.dart';

class Api {

  ///文本转语音（长文本语音合成）
  static Future<ResponseData> getCreateTtsTask({required String text, required int voiceType}) async {
    ResponseData responseData = await http
        .httpRequest(ApiConst.URL_ONE_LOGIN, MethodType.POST, data: {
      'text': text,
      'voiceType': voiceType,
    });
    return responseData;
  }

}